package org.CSL.app.platform.domain.admin;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.*;

import org.hibernate.annotations.ForeignKey;
/**
 * 模块实体
 * @date 2014-12-11 上午12:57:03
 * @version 1.0
 */
public class Module implements Serializable {

	private static final long serialVersionUID = -3305661625143086932L;
	
	private String code;

	private String name;
	/** 链接URL */
	private String url;
	
	/** upperCode */
	private String upperCode;
	/** 备注 */
	private String remark;
	
	/** 创建时间 */
	private Date createDate;
	/** 创建人 */
	private User creater;
	// 模块中的菜单与权限存在一对多关联
	private Set<Privilege> Privileges = new HashSet<Privilege>(0);
	
	
	
	
	
	
	public String getUpperCode() {
		return upperCode;
	}
	public void setUpperCode(String upperCode) {
		this.upperCode = upperCode;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public User getCreater() {
		return creater;
	}
	public void setCreater(User creater) {
		this.creater = creater;
	}
	public Set<Privilege> getPrivileges() {
		return Privileges;
	}
	public void setPrivileges(Set<Privilege> privileges) {
		Privileges = privileges;
	}
	
	
	/** setter and getter method */
	
}